<template>
  <div>
     <span>{{ shopName }}</span>
    <button @click="$emit('input',value+1)">+</button>
    <span> {{ value }} </span>
    <button @click="$emit('input',value-1)" :disabled="value===0">-</button>
  </div>
</template>
 
<script>
export default {
  name: "BuyGoods",
  components: {},
  props: {
    value:{
      type:Number,
      required:true,
    },
    shopName:{
      type:String,
      required:true,
    }
  },
  data() {
    return {};
  },
  computed: {},
  watch: {},
  created() {},
  methods: {}
};
</script>

<style scoped>
     
</style>